package com.financing.platform.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.financing.platform.dto.ProjectAnnualRevenueDTO;

public interface IProjectAnnualRevenueDao extends IBaseDao {
	
	/**
	 * 
	* @Title: insertProjectAnnualRevenue 
	* @Description: 插入产品预期年化收益
	* @param   projectAnnualRevenueDto
	* @return Integer   
	* @throws
	 */
	public Integer insertProjectAnnualRevenue(ProjectAnnualRevenueDTO projectAnnualRevenueDto);
	
	/**
	 * 
	* @Title: queryProjectAnnualRevenueList 
	* @Description: 查询单个产品的年化益信息
	* @param   pid
	* @return List<ProjectAnnualRevenueDTO>   
	* @throws
	 */
	public List<ProjectAnnualRevenueDTO> queryProjectAnnualRevenueList(Integer pid);
	
	/**
	 * 
	* @Title: deleteProjectAnnualRevenue 
	* @Description: 删除年化益率 
	* @param   pid
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int deleteProjectAnnualRevenue(Integer pid)throws SQLException;
	
	/**@Title: 修改年化益率 （错误 #1137: 后台-产品结束金额未填写保存显示原募集规模后再次修改募集规模，结束金额仍然显示原来的）
	 * @param map
	 * @return
	 * @throws SQLException
	 */
	public int updateProjectAnnualRevenueByendAmount(Map<String, Object> map) throws SQLException;
}
